package com.five.author.mapper;

import com.five.Page.Page;
import com.five.pojo.Author;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AuthorMapper {
    void insert(Author author);

    void deleteById(Long id);

    void updateById(Author author);

    Author selectById(Long id);

    List<Author> selectByPage(Page<Author> page);

    Integer selectTotals();

    List<Author> selectAll();
}